<template>
  <el-dialog
    :title="!dataForm.id ? '新增' : '修改'"
    :close-on-click-modal="false"
    :visible.sync="visible">
    <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
    <el-form-item label="用户id" prop="userId">
      <el-input v-model="dataForm.userId" placeholder="用户id"></el-input>
    </el-form-item>
    <el-form-item label="老师姓名" prop="teacherName">
      <el-input v-model="dataForm.teacherName" placeholder="老师姓名"></el-input>
    </el-form-item>
    <el-form-item label="代码" prop="code">
      <el-input v-model="dataForm.code" placeholder="代码"></el-input>
    </el-form-item>
    <el-form-item label="角色别名" prop="roleAlias">
      <el-input v-model="dataForm.roleAlias" placeholder="角色别名"></el-input>
    </el-form-item>
    <el-form-item label="状态, 1:正常,2:停用,3:回收站,4:删除(关闭数据),5:退休,6:离职,7:调岗,8:出国,9:身故,10:暂未在本单位任职-借出到机关,11:暂未在本单位任职-借出到事业单位,12:暂未在本单位任职-长病假13:暂未在本单位任职-进修,14:暂未在本单位任职-交流轮岗,15:暂未在本单位任职-企业实践,16:暂未在本单位任职-因公出国,17:暂未在本单位任职-离岗创业,18:暂未在本单位任职-待退休,19:暂未在本单位任职-待岗,20:暂未在本单位任职-下落不明,21:离休,22:返聘,23:暂未在本单位任职,24:其他" prop="status">
      <el-input v-model="dataForm.status" placeholder="状态, 1:正常,2:停用,3:回收站,4:删除(关闭数据),5:退休,6:离职,7:调岗,8:出国,9:身故,10:暂未在本单位任职-借出到机关,11:暂未在本单位任职-借出到事业单位,12:暂未在本单位任职-长病假13:暂未在本单位任职-进修,14:暂未在本单位任职-交流轮岗,15:暂未在本单位任职-企业实践,16:暂未在本单位任职-因公出国,17:暂未在本单位任职-离岗创业,18:暂未在本单位任职-待退休,19:暂未在本单位任职-待岗,20:暂未在本单位任职-下落不明,21:离休,22:返聘,23:暂未在本单位任职,24:其他"></el-input>
    </el-form-item>
    <el-form-item label="性别：1：男性；2：女性；0：保密。" prop="gender">
      <el-input v-model="dataForm.gender" placeholder="性别：1：男性；2：女性；0：保密。"></el-input>
    </el-form-item>
    <el-form-item label="头像" prop="avatar">
      <el-input v-model="dataForm.avatar" placeholder="头像"></el-input>
    </el-form-item>
    <el-form-item label="虚拟扩展字段" prop="parameter">
      <el-input v-model="dataForm.parameter" placeholder="虚拟扩展字段"></el-input>
    </el-form-item>
    <el-form-item label="手机号码" prop="mobile">
      <el-input v-model="dataForm.mobile" placeholder="手机号码"></el-input>
    </el-form-item>
    <el-form-item label="邮箱" prop="mail">
      <el-input v-model="dataForm.mail" placeholder="邮箱"></el-input>
    </el-form-item>
    <el-form-item label="通讯地址" prop="address">
      <el-input v-model="dataForm.address" placeholder="通讯地址"></el-input>
    </el-form-item>
    <el-form-item label="邮编" prop="post">
      <el-input v-model="dataForm.post" placeholder="邮编"></el-input>
    </el-form-item>
    <el-form-item label="备注信息" prop="remark">
      <el-input v-model="dataForm.remark" placeholder="备注信息"></el-input>
    </el-form-item>
    <el-form-item label="曾用名" prop="formerName">
      <el-input v-model="dataForm.formerName" placeholder="曾用名"></el-input>
    </el-form-item>
    <el-form-item label="国籍/地区" prop="country">
      <el-input v-model="dataForm.country" placeholder="国籍/地区"></el-input>
    </el-form-item>
    <el-form-item label="籍贯" prop="hometown">
      <el-input v-model="dataForm.hometown" placeholder="籍贯"></el-input>
    </el-form-item>
    <el-form-item label="民族" prop="nation">
      <el-input v-model="dataForm.nation" placeholder="民族"></el-input>
    </el-form-item>
    <el-form-item label="出生日期" prop="birthDate">
      <el-input v-model="dataForm.birthDate" placeholder="出生日期"></el-input>
    </el-form-item>
    <el-form-item label="出生行政地编码" prop="birthCode">
      <el-input v-model="dataForm.birthCode" placeholder="出生行政地编码"></el-input>
    </el-form-item>
    <el-form-item label="证件类型" prop="paperworkType">
      <el-input v-model="dataForm.paperworkType" placeholder="证件类型"></el-input>
    </el-form-item>
    <el-form-item label="证件编号" prop="paperworkSn">
      <el-input v-model="dataForm.paperworkSn" placeholder="证件编号"></el-input>
    </el-form-item>
    <el-form-item label="健康状态" prop="healthStatus">
      <el-input v-model="dataForm.healthStatus" placeholder="健康状态"></el-input>
    </el-form-item>
    <el-form-item label="工龄" prop="workYear">
      <el-input v-model="dataForm.workYear" placeholder="工龄"></el-input>
    </el-form-item>
    <el-form-item label="政治面貌" prop="characterType">
      <el-input v-model="dataForm.characterType" placeholder="政治面貌"></el-input>
    </el-form-item>
    <el-form-item label="入党时间" prop="partTime">
      <el-input v-model="dataForm.partTime" placeholder="入党时间"></el-input>
    </el-form-item>
    <el-form-item label="婚姻状态" prop="maritalStatus">
      <el-input v-model="dataForm.maritalStatus" placeholder="婚姻状态"></el-input>
    </el-form-item>
    <el-form-item label="毕业时间" prop="graduateDate">
      <el-input v-model="dataForm.graduateDate" placeholder="毕业时间"></el-input>
    </el-form-item>
    <el-form-item label="毕业院校" prop="college">
      <el-input v-model="dataForm.college" placeholder="毕业院校"></el-input>
    </el-form-item>
    <el-form-item label="所学专业" prop="major">
      <el-input v-model="dataForm.major" placeholder="所学专业"></el-input>
    </el-form-item>
    <el-form-item label="学历类型" prop="eduType">
      <el-input v-model="dataForm.eduType" placeholder="学历类型"></el-input>
    </el-form-item>
    <el-form-item label="学历名称" prop="eduName">
      <el-input v-model="dataForm.eduName" placeholder="学历名称"></el-input>
    </el-form-item>
    <el-form-item label="学历层次" prop="eduLevel">
      <el-input v-model="dataForm.eduLevel" placeholder="学历层次"></el-input>
    </el-form-item>
    <el-form-item label="学历层次名称" prop="levelName">
      <el-input v-model="dataForm.levelName" placeholder="学历层次名称"></el-input>
    </el-form-item>
    <el-form-item label="学位类型" prop="degreeType">
      <el-input v-model="dataForm.degreeType" placeholder="学位类型"></el-input>
    </el-form-item>
    <el-form-item label="学位时间" prop="degreeDate">
      <el-input v-model="dataForm.degreeDate" placeholder="学位时间"></el-input>
    </el-form-item>
    <el-form-item label="一级分类" prop="primaryClazzify">
      <el-input v-model="dataForm.primaryClazzify" placeholder="一级分类"></el-input>
    </el-form-item>
    <el-form-item label="二级分类" prop="secondaryClazzify">
      <el-input v-model="dataForm.secondaryClazzify" placeholder="二级分类"></el-input>
    </el-form-item>
    <el-form-item label="教职类别" prop="type">
      <el-input v-model="dataForm.type" placeholder="教职类别"></el-input>
    </el-form-item>
    <el-form-item label="教职来源" prop="orgin">
      <el-input v-model="dataForm.orgin" placeholder="教职来源"></el-input>
    </el-form-item>
    <el-form-item label="编制类型" prop="schemeType">
      <el-input v-model="dataForm.schemeType" placeholder="编制类型"></el-input>
    </el-form-item>
    <el-form-item label="职称等级" prop="grade">
      <el-input v-model="dataForm.grade" placeholder="职称等级"></el-input>
    </el-form-item>
    <el-form-item label="职称" prop="professional">
      <el-input v-model="dataForm.professional" placeholder="职称"></el-input>
    </el-form-item>
    <el-form-item label="从教专业" prop="metier">
      <el-input v-model="dataForm.metier" placeholder="从教专业"></el-input>
    </el-form-item>
    <el-form-item label="从教学科" prop="subject">
      <el-input v-model="dataForm.subject" placeholder="从教学科"></el-input>
    </el-form-item>
    <el-form-item label="用人形式" prop="staffWay">
      <el-input v-model="dataForm.staffWay" placeholder="用人形式"></el-input>
    </el-form-item>
    <el-form-item label="人员性质" prop="staffFeature">
      <el-input v-model="dataForm.staffFeature" placeholder="人员性质"></el-input>
    </el-form-item>
    <el-form-item label="人员类别" prop="staffKind">
      <el-input v-model="dataForm.staffKind" placeholder="人员类别"></el-input>
    </el-form-item>
    <el-form-item label="人员类型" prop="staffType">
      <el-input v-model="dataForm.staffType" placeholder="人员类型"></el-input>
    </el-form-item>
    <el-form-item label="岗位类别" prop="jobKind">
      <el-input v-model="dataForm.jobKind" placeholder="岗位类别"></el-input>
    </el-form-item>
    <el-form-item label="岗位等级" prop="jobGrade">
      <el-input v-model="dataForm.jobGrade" placeholder="岗位等级"></el-input>
    </el-form-item>
    <el-form-item label="参加时间" prop="workDate">
      <el-input v-model="dataForm.workDate" placeholder="参加时间"></el-input>
    </el-form-item>
    <el-form-item label="获职时间" prop="officeDate">
      <el-input v-model="dataForm.officeDate" placeholder="获职时间"></el-input>
    </el-form-item>
    <el-form-item label="进入时间" prop="joinDate">
      <el-input v-model="dataForm.joinDate" placeholder="进入时间"></el-input>
    </el-form-item>
    <el-form-item label="创建时间" prop="createTime">
      <el-input v-model="dataForm.createTime" placeholder="创建时间"></el-input>
    </el-form-item>
    <el-form-item label="创建者" prop="createBy">
      <el-input v-model="dataForm.createBy" placeholder="创建者"></el-input>
    </el-form-item>
    <el-form-item label="更新时间" prop="updateTime">
      <el-input v-model="dataForm.updateTime" placeholder="更新时间"></el-input>
    </el-form-item>
    <el-form-item label="更新者" prop="updateBy">
      <el-input v-model="dataForm.updateBy" placeholder="更新者"></el-input>
    </el-form-item>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button @click="visible = false">取消</el-button>
      <el-button type="primary" @click="dataFormSubmit()">确定</el-button>
    </span>
  </el-dialog>
</template>

<script>
  export default {
    data () {
      return {
        visible: false,
        dataForm: {
          id: 0,
          userId: '',
          teacherName: '',
          code: '',
          roleAlias: '',
          status: '',
          gender: '',
          avatar: '',
          parameter: '',
          mobile: '',
          mail: '',
          address: '',
          post: '',
          remark: '',
          formerName: '',
          country: '',
          hometown: '',
          nation: '',
          birthDate: '',
          birthCode: '',
          paperworkType: '',
          paperworkSn: '',
          healthStatus: '',
          workYear: '',
          characterType: '',
          partTime: '',
          maritalStatus: '',
          graduateDate: '',
          college: '',
          major: '',
          eduType: '',
          eduName: '',
          eduLevel: '',
          levelName: '',
          degreeType: '',
          degreeDate: '',
          primaryClazzify: '',
          secondaryClazzify: '',
          type: '',
          orgin: '',
          schemeType: '',
          grade: '',
          professional: '',
          metier: '',
          subject: '',
          staffWay: '',
          staffFeature: '',
          staffKind: '',
          staffType: '',
          jobKind: '',
          jobGrade: '',
          workDate: '',
          officeDate: '',
          joinDate: '',
          createTime: '',
          createBy: '',
          updateTime: '',
          updateBy: ''
        },
        dataRule: {
          userId: [
            { required: true, message: '用户id不能为空', trigger: 'blur' }
          ],
          teacherName: [
            { required: true, message: '老师姓名不能为空', trigger: 'blur' }
          ],
          code: [
            { required: true, message: '代码不能为空', trigger: 'blur' }
          ],
          roleAlias: [
            { required: true, message: '角色别名不能为空', trigger: 'blur' }
          ],
          status: [
            { required: true, message: '状态, 1:正常,2:停用,3:回收站,4:删除(关闭数据),5:退休,6:离职,7:调岗,8:出国,9:身故,10:暂未在本单位任职-借出到机关,11:暂未在本单位任职-借出到事业单位,12:暂未在本单位任职-长病假13:暂未在本单位任职-进修,14:暂未在本单位任职-交流轮岗,15:暂未在本单位任职-企业实践,16:暂未在本单位任职-因公出国,17:暂未在本单位任职-离岗创业,18:暂未在本单位任职-待退休,19:暂未在本单位任职-待岗,20:暂未在本单位任职-下落不明,21:离休,22:返聘,23:暂未在本单位任职,24:其他不能为空', trigger: 'blur' }
          ],
          gender: [
            { required: true, message: '性别：1：男性；2：女性；0：保密。不能为空', trigger: 'blur' }
          ],
          avatar: [
            { required: true, message: '头像不能为空', trigger: 'blur' }
          ],
          parameter: [
            { required: true, message: '虚拟扩展字段不能为空', trigger: 'blur' }
          ],
          mobile: [
            { required: true, message: '手机号码不能为空', trigger: 'blur' }
          ],
          mail: [
            { required: true, message: '邮箱不能为空', trigger: 'blur' }
          ],
          address: [
            { required: true, message: '通讯地址不能为空', trigger: 'blur' }
          ],
          post: [
            { required: true, message: '邮编不能为空', trigger: 'blur' }
          ],
          remark: [
            { required: true, message: '备注信息不能为空', trigger: 'blur' }
          ],
          formerName: [
            { required: true, message: '曾用名不能为空', trigger: 'blur' }
          ],
          country: [
            { required: true, message: '国籍/地区不能为空', trigger: 'blur' }
          ],
          hometown: [
            { required: true, message: '籍贯不能为空', trigger: 'blur' }
          ],
          nation: [
            { required: true, message: '民族不能为空', trigger: 'blur' }
          ],
          birthDate: [
            { required: true, message: '出生日期不能为空', trigger: 'blur' }
          ],
          birthCode: [
            { required: true, message: '出生行政地编码不能为空', trigger: 'blur' }
          ],
          paperworkType: [
            { required: true, message: '证件类型不能为空', trigger: 'blur' }
          ],
          paperworkSn: [
            { required: true, message: '证件编号不能为空', trigger: 'blur' }
          ],
          healthStatus: [
            { required: true, message: '健康状态不能为空', trigger: 'blur' }
          ],
          workYear: [
            { required: true, message: '工龄不能为空', trigger: 'blur' }
          ],
          characterType: [
            { required: true, message: '政治面貌不能为空', trigger: 'blur' }
          ],
          partTime: [
            { required: true, message: '入党时间不能为空', trigger: 'blur' }
          ],
          maritalStatus: [
            { required: true, message: '婚姻状态不能为空', trigger: 'blur' }
          ],
          graduateDate: [
            { required: true, message: '毕业时间不能为空', trigger: 'blur' }
          ],
          college: [
            { required: true, message: '毕业院校不能为空', trigger: 'blur' }
          ],
          major: [
            { required: true, message: '所学专业不能为空', trigger: 'blur' }
          ],
          eduType: [
            { required: true, message: '学历类型不能为空', trigger: 'blur' }
          ],
          eduName: [
            { required: true, message: '学历名称不能为空', trigger: 'blur' }
          ],
          eduLevel: [
            { required: true, message: '学历层次不能为空', trigger: 'blur' }
          ],
          levelName: [
            { required: true, message: '学历层次名称不能为空', trigger: 'blur' }
          ],
          degreeType: [
            { required: true, message: '学位类型不能为空', trigger: 'blur' }
          ],
          degreeDate: [
            { required: true, message: '学位时间不能为空', trigger: 'blur' }
          ],
          primaryClazzify: [
            { required: true, message: '一级分类不能为空', trigger: 'blur' }
          ],
          secondaryClazzify: [
            { required: true, message: '二级分类不能为空', trigger: 'blur' }
          ],
          type: [
            { required: true, message: '教职类别不能为空', trigger: 'blur' }
          ],
          orgin: [
            { required: true, message: '教职来源不能为空', trigger: 'blur' }
          ],
          schemeType: [
            { required: true, message: '编制类型不能为空', trigger: 'blur' }
          ],
          grade: [
            { required: true, message: '职称等级不能为空', trigger: 'blur' }
          ],
          professional: [
            { required: true, message: '职称不能为空', trigger: 'blur' }
          ],
          metier: [
            { required: true, message: '从教专业不能为空', trigger: 'blur' }
          ],
          subject: [
            { required: true, message: '从教学科不能为空', trigger: 'blur' }
          ],
          staffWay: [
            { required: true, message: '用人形式不能为空', trigger: 'blur' }
          ],
          staffFeature: [
            { required: true, message: '人员性质不能为空', trigger: 'blur' }
          ],
          staffKind: [
            { required: true, message: '人员类别不能为空', trigger: 'blur' }
          ],
          staffType: [
            { required: true, message: '人员类型不能为空', trigger: 'blur' }
          ],
          jobKind: [
            { required: true, message: '岗位类别不能为空', trigger: 'blur' }
          ],
          jobGrade: [
            { required: true, message: '岗位等级不能为空', trigger: 'blur' }
          ],
          workDate: [
            { required: true, message: '参加时间不能为空', trigger: 'blur' }
          ],
          officeDate: [
            { required: true, message: '获职时间不能为空', trigger: 'blur' }
          ],
          joinDate: [
            { required: true, message: '进入时间不能为空', trigger: 'blur' }
          ],
          createTime: [
            { required: true, message: '创建时间不能为空', trigger: 'blur' }
          ],
          createBy: [
            { required: true, message: '创建者不能为空', trigger: 'blur' }
          ],
          updateTime: [
            { required: true, message: '更新时间不能为空', trigger: 'blur' }
          ],
          updateBy: [
            { required: true, message: '更新者不能为空', trigger: 'blur' }
          ]
        }
      }
    },
    methods: {
      init (id) {
        this.dataForm.id = id || 0
        this.visible = true
        this.$nextTick(() => {
          this.$refs['dataForm'].resetFields()
          if (this.dataForm.id) {
            this.$http({
              url: this.$http.adornUrl(`/eas/easbasicteacher/info/${this.dataForm.id}`),
              method: 'get',
              params: this.$http.adornParams()
            }).then(({data}) => {
              if (data && data.code === 0) {
                this.dataForm.userId = data.easBasicTeacher.userId
                this.dataForm.teacherName = data.easBasicTeacher.teacherName
                this.dataForm.code = data.easBasicTeacher.code
                this.dataForm.roleAlias = data.easBasicTeacher.roleAlias
                this.dataForm.status = data.easBasicTeacher.status
                this.dataForm.gender = data.easBasicTeacher.gender
                this.dataForm.avatar = data.easBasicTeacher.avatar
                this.dataForm.parameter = data.easBasicTeacher.parameter
                this.dataForm.mobile = data.easBasicTeacher.mobile
                this.dataForm.mail = data.easBasicTeacher.mail
                this.dataForm.address = data.easBasicTeacher.address
                this.dataForm.post = data.easBasicTeacher.post
                this.dataForm.remark = data.easBasicTeacher.remark
                this.dataForm.formerName = data.easBasicTeacher.formerName
                this.dataForm.country = data.easBasicTeacher.country
                this.dataForm.hometown = data.easBasicTeacher.hometown
                this.dataForm.nation = data.easBasicTeacher.nation
                this.dataForm.birthDate = data.easBasicTeacher.birthDate
                this.dataForm.birthCode = data.easBasicTeacher.birthCode
                this.dataForm.paperworkType = data.easBasicTeacher.paperworkType
                this.dataForm.paperworkSn = data.easBasicTeacher.paperworkSn
                this.dataForm.healthStatus = data.easBasicTeacher.healthStatus
                this.dataForm.workYear = data.easBasicTeacher.workYear
                this.dataForm.characterType = data.easBasicTeacher.characterType
                this.dataForm.partTime = data.easBasicTeacher.partTime
                this.dataForm.maritalStatus = data.easBasicTeacher.maritalStatus
                this.dataForm.graduateDate = data.easBasicTeacher.graduateDate
                this.dataForm.college = data.easBasicTeacher.college
                this.dataForm.major = data.easBasicTeacher.major
                this.dataForm.eduType = data.easBasicTeacher.eduType
                this.dataForm.eduName = data.easBasicTeacher.eduName
                this.dataForm.eduLevel = data.easBasicTeacher.eduLevel
                this.dataForm.levelName = data.easBasicTeacher.levelName
                this.dataForm.degreeType = data.easBasicTeacher.degreeType
                this.dataForm.degreeDate = data.easBasicTeacher.degreeDate
                this.dataForm.primaryClazzify = data.easBasicTeacher.primaryClazzify
                this.dataForm.secondaryClazzify = data.easBasicTeacher.secondaryClazzify
                this.dataForm.type = data.easBasicTeacher.type
                this.dataForm.orgin = data.easBasicTeacher.orgin
                this.dataForm.schemeType = data.easBasicTeacher.schemeType
                this.dataForm.grade = data.easBasicTeacher.grade
                this.dataForm.professional = data.easBasicTeacher.professional
                this.dataForm.metier = data.easBasicTeacher.metier
                this.dataForm.subject = data.easBasicTeacher.subject
                this.dataForm.staffWay = data.easBasicTeacher.staffWay
                this.dataForm.staffFeature = data.easBasicTeacher.staffFeature
                this.dataForm.staffKind = data.easBasicTeacher.staffKind
                this.dataForm.staffType = data.easBasicTeacher.staffType
                this.dataForm.jobKind = data.easBasicTeacher.jobKind
                this.dataForm.jobGrade = data.easBasicTeacher.jobGrade
                this.dataForm.workDate = data.easBasicTeacher.workDate
                this.dataForm.officeDate = data.easBasicTeacher.officeDate
                this.dataForm.joinDate = data.easBasicTeacher.joinDate
                this.dataForm.createTime = data.easBasicTeacher.createTime
                this.dataForm.createBy = data.easBasicTeacher.createBy
                this.dataForm.updateTime = data.easBasicTeacher.updateTime
                this.dataForm.updateBy = data.easBasicTeacher.updateBy
              }
            })
          }
        })
      },
      // 表单提交
      dataFormSubmit () {
        this.$refs['dataForm'].validate((valid) => {
          if (valid) {
            this.$http({
              url: this.$http.adornUrl(`/eas/easbasicteacher/${!this.dataForm.id ? 'save' : 'update'}`),
              method: 'post',
              data: this.$http.adornData({
                'id': this.dataForm.id || undefined,
                'userId': this.dataForm.userId,
                'teacherName': this.dataForm.teacherName,
                'code': this.dataForm.code,
                'roleAlias': this.dataForm.roleAlias,
                'status': this.dataForm.status,
                'gender': this.dataForm.gender,
                'avatar': this.dataForm.avatar,
                'parameter': this.dataForm.parameter,
                'mobile': this.dataForm.mobile,
                'mail': this.dataForm.mail,
                'address': this.dataForm.address,
                'post': this.dataForm.post,
                'remark': this.dataForm.remark,
                'formerName': this.dataForm.formerName,
                'country': this.dataForm.country,
                'hometown': this.dataForm.hometown,
                'nation': this.dataForm.nation,
                'birthDate': this.dataForm.birthDate,
                'birthCode': this.dataForm.birthCode,
                'paperworkType': this.dataForm.paperworkType,
                'paperworkSn': this.dataForm.paperworkSn,
                'healthStatus': this.dataForm.healthStatus,
                'workYear': this.dataForm.workYear,
                'characterType': this.dataForm.characterType,
                'partTime': this.dataForm.partTime,
                'maritalStatus': this.dataForm.maritalStatus,
                'graduateDate': this.dataForm.graduateDate,
                'college': this.dataForm.college,
                'major': this.dataForm.major,
                'eduType': this.dataForm.eduType,
                'eduName': this.dataForm.eduName,
                'eduLevel': this.dataForm.eduLevel,
                'levelName': this.dataForm.levelName,
                'degreeType': this.dataForm.degreeType,
                'degreeDate': this.dataForm.degreeDate,
                'primaryClazzify': this.dataForm.primaryClazzify,
                'secondaryClazzify': this.dataForm.secondaryClazzify,
                'type': this.dataForm.type,
                'orgin': this.dataForm.orgin,
                'schemeType': this.dataForm.schemeType,
                'grade': this.dataForm.grade,
                'professional': this.dataForm.professional,
                'metier': this.dataForm.metier,
                'subject': this.dataForm.subject,
                'staffWay': this.dataForm.staffWay,
                'staffFeature': this.dataForm.staffFeature,
                'staffKind': this.dataForm.staffKind,
                'staffType': this.dataForm.staffType,
                'jobKind': this.dataForm.jobKind,
                'jobGrade': this.dataForm.jobGrade,
                'workDate': this.dataForm.workDate,
                'officeDate': this.dataForm.officeDate,
                'joinDate': this.dataForm.joinDate,
                'createTime': this.dataForm.createTime,
                'createBy': this.dataForm.createBy,
                'updateTime': this.dataForm.updateTime,
                'updateBy': this.dataForm.updateBy
              })
            }).then(({data}) => {
              if (data && data.code === 0) {
                this.$message({
                  message: '操作成功',
                  type: 'success',
                  duration: 1500,
                  onClose: () => {
                    this.visible = false
                    this.$emit('refreshDataList')
                  }
                })
              } else {
                this.$message.error(data.msg)
              }
            })
          }
        })
      }
    }
  }
</script>
